#ifndef INC_DEVICEDRIVER
	#define INC_DEVICEDRIVER

	#define DD_RESMAX 1

	#define DD_TYPE_UNAVAILABLE 0
	#define DD_TYPE_PTR 1
	#define DD_TYPE_RFID 2

	struct DDAssignNode{
		int id;
		int type;
	};

	struct DDAssignNode DDAssignTable[DD_RESMAX];

	int DDAssign(int type); /* Return Value:Index of a unused DDAssignNode */
	int DDUnassign(int index);
	int DDQueryAssignTable(int index);

	int Open();	/* This is a function for Lua.It should pop "type" from Lua stack */
	int Close();	/* This is a function for Lua.It should pop "type" from Lua stack */
	int Read();		/* This is a function for Lua.It should pop "type" from Lua stack */
	int Write();	/* This is a function for Lua.It should pop "type" from Lua stack */
#endif